<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      GTK+-3.24.16
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;25.&nbsp;X Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="gtk2.html" title="GTK+-2.24.32">Prev</a>
          <p>
            GTK+-2.24.32
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="gtk-engines.html" title=
          "GTK Engines-2.20.2">Next</a>
          <p>
            GTK Engines-2.20.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="gtk3" name="gtk3"></a>GTK+-3.24.16
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to GTK+ 3
        </h2>
        <p>
          The <span class="application">GTK+ 3</span> package contains
          libraries used for creating graphical user interfaces for
          applications.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.gnome.org/pub/gnome/sources/gtk+/3.24/gtk+-3.24.16.tar.xz">
                http://ftp.gnome.org/pub/gnome/sources/gtk+/3.24/gtk+-3.24.16.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnome.org/pub/gnome/sources/gtk+/3.24/gtk+-3.24.16.tar.xz">
                ftp://ftp.gnome.org/pub/gnome/sources/gtk+/3.24/gtk+-3.24.16.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: cef1dd5f7b78d3d51b983e388ba49af5
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 19 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 460 MB (add 4 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 1.1 SBU (using parallelism=4, add 0.4
                SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          GTK+ 3 Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="at-spi2-atk.html" title=
          "at-spi2-atk-2.34.2">at-spi2-atk-2.34.2</a>, <a class="xref" href=
          "../general/fribidi.html" title="FriBidi-1.0.9">FriBidi-1.0.9</a>,
          <a class="xref" href="gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">gdk-pixbuf-2.40.0</a>, <a class="xref" href=
          "libepoxy.html" title="libepoxy-1.5.4">libepoxy-1.5.4</a>, and
          <a class="xref" href="pango.html" title=
          "Pango-1.44.7">Pango-1.44.7</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="adwaita-icon-theme.html" title=
          "adwaita-icon-theme-3.36.0">adwaita-icon-theme-3.36.0</a> (default
          for some gtk+3 settings keys, also needed for tests), <a class=
          "xref" href="hicolor-icon-theme.html" title=
          "hicolor-icon-theme-0.17">hicolor-icon-theme-0.17</a> (needed for
          tests), <a class="xref" href="../general/iso-codes.html" title=
          "ISO Codes-4.4">ISO Codes-4.4</a>, <a class="xref" href=
          "../general/libxkbcommon.html" title=
          "libxkbcommon-0.10.0">libxkbcommon-0.10.0</a>, <a class="xref"
          href="../general/sassc.html" title="sassc-3.6.1">sassc-3.6.1</a>,
          <a class="xref" href="../general/wayland.html" title=
          "Wayland-1.18.0">Wayland-1.18.0</a>, and <a class="xref" href=
          "../general/wayland-protocols.html" title=
          "Wayland-Protocols-1.20">wayland-protocols-1.20</a>
        </p>
        <h4>
          Recommended (Required if building GNOME)
        </h4>
        <p class="recommended">
          <a class="xref" href="../general/gobject-introspection.html" title=
          "gobject-introspection-1.64.0">gobject-introspection-1.64.0</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/colord.html" title=
          "Colord-1.4.4">colord-1.4.4</a>, <a class="xref" href=
          "../pst/cups.html" title="Cups-2.3.1">Cups-2.3.1</a>, <a class=
          "xref" href="../pst/docbook-utils.html" title=
          "DocBook-utils-0.6.14">DocBook-utils-0.6.14</a>, <a class="xref"
          href="../general/gtk-doc.html" title=
          "GTK-Doc-1.32">GTK-Doc-1.32</a>, <a class="xref" href=
          "../general/json-glib.html" title=
          "JSON-GLib-1.4.4">JSON-GLib-1.4.4</a>, <a class="xref" href=
          "../general/python-modules.html#pyatspi2" title=
          "PyAtSpi2-2.36.0">PyAtSpi2-2.36.0</a> (for tests), <a class="xref"
          href="../gnome/rest.html" title="rest-0.8.1">rest-0.8.1</a>, and
          <a class="ulink" href="http://icl.cs.utk.edu/papi/">PAPI</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/gtk3">http://wiki.linuxfromscratch.org/blfs/wiki/gtk3</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of GTK+ 3
        </h2>
        <div class="admon caution">
          <img alt="[Caution]" src="../images/caution.png" />
          <h3>
            Caution
          </h3>
          <p>
            If you are upgrading from a version of GTK+3 prior to 3.24.9, you
            must run the <code class="filename">remove-la-files.sh</code>
            script from <a class="xref" href="../introduction/la-files.html"
            title="About Libtool Archive (.la) files">Libtool archive (.la)
            files</a> after installing GTK+.
          </p>
        </div>
        <p>
          Install <span class="application">GTK+ 3</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir build-gtk3 &amp;&amp;
cd    build-gtk3 &amp;&amp;

meson --prefix=/usr     \
      -Dcolord=yes      \
      -Dgtk_doc=false   \
      -Dman=true        \
      -Dbroadway_backend=true .. &amp;&amp;
ninja</kbd>
</pre>
        <p>
          Some tests fail if <code class=
          "filename">/usr/share/glib-2.0/schemas/gschemas.compiled</code> is
          not found. If you wish to run the test suite, create (or update)
          the file using the following command as the <code class=
          "systemitem">root</code> user: <span class=
          "command"><strong>glib-compile-schemas
          /usr/share/glib-2.0/schemas</strong></span>.
        </p>
        <p>
          To test the results you need a graphical session, then issue
          <span class="command"><strong>ninja test</strong></span>. Six tests
          are known to fail in the a11y suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">ninja install</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you installed the package on to your system using a
            <span class="quote">&ldquo;<span class=
            "quote">DESTDIR</span>&rdquo;</span> method, an important file
            was not installed and must be copied and/or generated. Generate
            it using the following command as the <code class=
            "systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">gtk-query-immodules-3.0 --update-cache</kbd>
</pre>
        </div>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you installed the package to your system using a <span class=
            "quote">&ldquo;<span class="quote">DESTDIR</span>&rdquo;</span>
            method, <code class=
            "filename">/usr/share/glib-2.0/schemas/gschemas.compiled</code>
            was not updated/created. Create (or update) the file using the
            following command as the <code class="systemitem">root</code>
            user:
          </p>
          <pre class="root">
<kbd class="command">glib-compile-schemas /usr/share/glib-2.0/schemas</kbd>
</pre>
        </div>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>-Dbroadway_backend=true</code></em>:
          This switch enables the HTML5 GTK backend.
        </p>
        <p>
          <em class="parameter"><code>-Dcolord=yes</code></em>: This switch
          allows color support in the GTK+ printing backend.
        </p>
        <p>
          <em class="parameter"><code>-Dman=true</code></em>: This switch
          allows generating manual pages.
        </p>
        <p>
          <em class="parameter"><code>-Dgtk_doc=false</code></em>: This
          switch disables building documentation. Replace with -Dgtk_doc=true
          if you have <a class="xref" href="../general/gtk-doc.html" title=
          "GTK-Doc-1.32">GTK-Doc-1.32</a> installed and wish to generate
          documentation.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring GTK+ 3
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="gtk3-config" name="gtk3-config"></a>
          </h3>
          <h4 class="title">
            <a id="gtk3-config" name="gtk3-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">~/.config/gtk-3.0/settings.ini</code> and
            <code class="filename">/etc/gtk-3.0/settings.ini</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006431540208" name=
            "idm140006431540208"></a>Configuration Information
          </h4>
          <p>
            <span class="application">GTK+ 3</span> themes change the way a
            <span class="application">GTK+ 3</span> application looks. An
            icon theme can be used to change the icons that appear on the
            application's toolbar. If you have installed a <span class=
            "application">GTK+ 3</span> theme (e.g. the Adwaita theme built
            in <span class="application">GTK+ 3</span>), an icon theme (such
            as <a class="xref" href="oxygen-icons5.html" title=
            "oxygen-icons5-5.67.0">oxygen-icons5-5.67.0</a>) and/or a font
            (<a class="xref" href="TTF-and-OTF-fonts.html#dejavu-fonts"
            title="DejaVu fonts">Dejavu fonts</a>), you can set your
            preferences in <code class=
            "filename">~/.config/gtk-3.0/settings.ini</code>, or the default
            system wide configuration file (as the <code class=
            "systemitem">root</code> user), in <code class=
            "filename">/etc/gtk-3.0/settings.ini</code>. For the local user
            an example is:
          </p>
          <pre class="userinput">
<kbd class="command">mkdir -vp ~/.config/gtk-3.0
cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
<code class="literal">[Settings]
gtk-theme-name = <em class="replaceable"><code>Adwaita</code></em>
gtk-icon-theme-name = <em class="replaceable"><code>oxygen</code></em>
gtk-font-name = <em class="replaceable"><code>DejaVu Sans 12</code></em>
gtk-cursor-theme-size = <em class="replaceable"><code>18</code></em>
gtk-toolbar-style = <em class=
"replaceable"><code>GTK_TOOLBAR_BOTH_HORIZ</code></em>
gtk-xft-antialias = <em class="replaceable"><code>1</code></em>
gtk-xft-hinting = <em class="replaceable"><code>1</code></em>
gtk-xft-hintstyle = <em class="replaceable"><code>hintslight</code></em>
gtk-xft-rgba = <em class="replaceable"><code>rgb</code></em>
gtk-cursor-theme-name = <em class=
"replaceable"><code>Adwaita</code></em></code>
EOF</kbd>
</pre>
          <p>
            There are many settings keys, some with default values. You can
            find them at <a class="ulink" href=
            "https://developer.gnome.org/gtk3/stable/GtkSettings.html">Settings:
            GTK+ 3 Reference Manual</a>. There are many more themes available
            at <a class="ulink" href=
            "http://gnome-look.org/">http://gnome-look.org/</a> and other
            places.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">broadwayd, gtk3-demo,
              gtk3-demo-application, gtk3-icon-browser, gtk3-widget-factory,
              gtk-builder-tool, gtk-encode-symbolic-svg, gtk-launch,
              gtk-query-immodules-3.0, gtk-query-settings, and
              gtk-update-icon-cache</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libgailutil-3.so, libgdk-3.so, and
              libgtk-3.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/gtk-3.0,
              /usr/include/{gail,gtk}-3.0, /usr/{lib,share}/gtk-3.0,
              /usr/share/gtk-doc/html/{gail-libgail-util,gdk,gtk}3, and
              /usr/share/themes/{Default,Emacs}/gtk-3.0</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="broadwayd" name="broadwayd"></a><span class=
                    "term"><span class=
                    "command"><strong>broadwayd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides support for displaying <span class=
                    "application">GTK+ 3</span> applications in a web
                    browser, using HTML5 and web sockets.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk3-demo" name="gtk3-demo"></a><span class=
                    "term"><span class=
                    "command"><strong>gtk3-demo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a simple program that demonstrates some of the tasks
                    that can be done with <span class="application">GTK+
                    3</span>
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk3-demo-application" name=
                    "gtk3-demo-application"></a><span class=
                    "term"><span class=
                    "command"><strong>gtk3-demo-application</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a simple <span class="application">GTK+ 3</span>
                    application.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk3-icon-browser" name=
                    "gtk3-icon-browser"></a><span class="term"><span class=
                    "command"><strong>gtk3-icon-browser</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a utility to explore the icons in the current icon
                    theme. It shows icons in various sizes, their symbolic
                    variants where available, as well as a description of the
                    icon and its context.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk3-widget-factory" name=
                    "gtk3-widget-factory"></a><span class="term"><span class=
                    "command"><strong>gtk3-widget-factory</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a program to view <span class="application">GTK+
                    3</span> themes and widgets.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk-builder-tool" name=
                    "gtk-builder-tool"></a><span class="term"><span class=
                    "command"><strong>gtk-builder-tool</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    can perform various operations on GtkBuilder .ui files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk-encode-symbolic-svg" name=
                    "gtk-encode-symbolic-svg"></a><span class=
                    "term"><span class=
                    "command"><strong>gtk-encode-symbolic-svg</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts symbolic svg icons into specially prepared png
                    files. <span class="application">GTK+ 3</span> can load
                    and recolor these pngs, just like original svgs, but
                    loading them is much faster.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk-launch" name="gtk-launch"></a><span class=
                    "term"><span class=
                    "command"><strong>gtk-launch</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    launches an application using the given name. The name
                    should match the application desktop file name, as
                    residing in <code class=
                    "filename">/usr/share/applications</code>, with or
                    without the '.desktop' suffix.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk-query-immodules-3.0" name=
                    "gtk-query-immodules-3.0"></a><span class=
                    "term"><span class=
                    "command"><strong>gtk-query-immodules-3.0</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    collects information about loadable input method modules
                    for <span class="application">GTK+ 3</span> and writes it
                    to the default cache file location, or to standard
                    output.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk-query-settings" name=
                    "gtk-query-settings"></a><span class="term"><span class=
                    "command"><strong>gtk-query-settings</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides a complete listing of all settings related to
                    <span class="application">GTK+ 3</span>
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gtk-update-icon-cache3" name=
                    "gtk-update-icon-cache3"></a><span class=
                    "term"><span class=
                    "command"><strong>gtk-update-icon-cache</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an icon theme caching utility that creates mmap()able
                    cache files for icon themes.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libgailutil-3" name=
                    "libgailutil-3"></a><span class="term"><code class=
                    "filename">libgailutil-3.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that implement the accessibility
                    interfaces defined by the <span class=
                    "application">GNOME</span> Accessibility Toolkit.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libgdk-3" name="libgdk-3"></a><span class=
                    "term"><code class="filename">libgdk-3.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that act as a wrapper around the
                    low-level drawing and windowing functions provided by the
                    underlying graphics system.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libgtk-3" name="libgtk-3"></a><span class=
                    "term"><code class="filename">libgtk-3.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that provide an API to implement
                    graphical user interfaces.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-27 20:18:30 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="gtk2.html" title="GTK+-2.24.32">Prev</a>
          <p>
            GTK+-2.24.32
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="gtk-engines.html" title=
          "GTK Engines-2.20.2">Next</a>
          <p>
            GTK Engines-2.20.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
